﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Landscape.Examples {
    public partial class Default : System.Web.UI.Page {
        protected void Page_Init(object sender, EventArgs e) {
            switch (Request.QueryString["feature"]) {
                case "nested_templates":
                    Renderer.RenderToPlaceHolder("NestedTemplates", new DataSet(), placeholder1);
                    break;
                case "nested_templates_with_parameters":
                    Renderer.RenderToPlaceHolder("NestedTemplatesWithParameters", new DataSet(), placeholder1);
                    break;
                case "widgets":
                    Renderer.RenderToPlaceHolder("WidgetsTemplate", new DataSet(), placeholder1);
                    break;
                case "smart_includes":
                    Renderer.RenderToPlaceHolder("SmartIncludesTemplate", new DataSet(), placeholder1);
                    break;
                case "xslt_extension":
                    Renderer.RenderToPlaceHolder("XsltExtensionTemplate", new DataSet(), placeholder1);
                    break;
                case "user_controls":
                    Renderer.RenderToPlaceHolder("UserControlsTemplate", new DataSet(), placeholder1);
                    break;
                default:
                    Renderer.RenderToPlaceHolder("BasicUsage", new DataSet(), placeholder1);
                    break;
            }
        }
    }
}